package com.gh.cloud.feign;

import feign.Param;
import feign.RequestLine;

import java.util.List;

/**
 * @author: guohao
 * @date: 2021-02-02 11:43
 **/
public interface GitHub {
    // 传入的参数后可以拼接成url: https://api.github.com/repos/OpenFeign/feign/contributors
    @RequestLine("GET /repos/{owner}/{repo}/contributors")
    List<Contributor> contributors(@Param("owner") String owner, @Param("repo") String repo);
}
